package com.rzl.expense.expense.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.rzl.expense.expense.mapper.RentBillaccountcontractMapper;
import com.rzl.expense.expense.domain.RentBillaccountcontract;
import com.rzl.expense.expense.service.IRentBillaccountcontractService;

/**
 * 房租合同报账点关系Service业务层处理
 * 
 * @author expense
 * @date 2025-01-13
 */
@Service
public class RentBillaccountcontractServiceImpl implements IRentBillaccountcontractService 
{
    @Autowired
    private RentBillaccountcontractMapper rentBillaccountcontractMapper;

    /**
     * 查询房租合同报账点关系
     * 
     * @param billaccountcontractId 房租合同报账点关系主键
     * @return 房租合同报账点关系
     */
    @Override
    public RentBillaccountcontract selectRentBillaccountcontractByBillaccountcontractId(String billaccountcontractId)
    {
        return rentBillaccountcontractMapper.selectRentBillaccountcontractByBillaccountcontractId(billaccountcontractId);
    }

    /**
     * 查询房租合同报账点关系列表
     * 
     * @param rentBillaccountcontract 房租合同报账点关系
     * @return 房租合同报账点关系
     */
    @Override
    public List<RentBillaccountcontract> selectRentBillaccountcontractList(RentBillaccountcontract rentBillaccountcontract)
    {
        return rentBillaccountcontractMapper.selectRentBillaccountcontractList(rentBillaccountcontract);
    }

    /**
     * 新增房租合同报账点关系
     * 
     * @param rentBillaccountcontract 房租合同报账点关系
     * @return 结果
     */
    @Override
    public int insertRentBillaccountcontract(RentBillaccountcontract rentBillaccountcontract)
    {
        return rentBillaccountcontractMapper.insertRentBillaccountcontract(rentBillaccountcontract);
    }

    /**
     * 修改房租合同报账点关系
     * 
     * @param rentBillaccountcontract 房租合同报账点关系
     * @return 结果
     */
    @Override
    public int updateRentBillaccountcontract(RentBillaccountcontract rentBillaccountcontract)
    {
        return rentBillaccountcontractMapper.updateRentBillaccountcontract(rentBillaccountcontract);
    }

    /**
     * 批量删除房租合同报账点关系
     * 
     * @param billaccountcontractIds 需要删除的房租合同报账点关系主键
     * @return 结果
     */
    @Override
    public int deleteRentBillaccountcontractByBillaccountcontractIds(String[] billaccountcontractIds)
    {
        return rentBillaccountcontractMapper.deleteRentBillaccountcontractByBillaccountcontractIds(billaccountcontractIds);
    }

    /**
     * 删除房租合同报账点关系信息
     * 
     * @param billaccountcontractId 房租合同报账点关系主键
     * @return 结果
     */
    @Override
    public int deleteRentBillaccountcontract()
    {
        return rentBillaccountcontractMapper.deleteRentBillaccountcontract();
    }




    @Override
    public void batchRentBillaccountcontract(List<RentBillaccountcontract> list)
    {

         rentBillaccountcontractMapper.batchRentBillaccountcontract(list);
    }


}
